package zhongbo.java.fast.order;


import zhongbo.java.fast.order.enums.ItemType;
import zhongbo.java.fast.order.model.Item;

import java.util.ArrayList;
import java.util.List;

/**
 * 说明：
 *
 * @author 钟波dellNotebook
 * @since 2025年03月27日 星期四 03:20:50
 */
public class ItemBuilder {

    public static List<Item> allItems() {
        List<Item> all = new ArrayList<>();
        all.add(hamburger());
        all.add(fries());
        all.add(chickenWrap());
        all.add(icedCoffee());
        all.add(cola());
        all.add(orangeJuice());
        all.add(iceCream());
        all.add(cake());
        return all;
    }

    // 主食类
    public static Item hamburger() {
        return new Item("H001", "汉堡", 15.0, ItemType.MAIN);
    }

    public static Item fries() {
        return new Item("F002", "薯条", 15.0, ItemType.MAIN);
    }

    public static Item chickenWrap() {
        return new Item("W003", "鸡肉卷", 12.0, ItemType.MAIN);
    }

    // 饮料类
    public static Item icedCoffee() {
        return new Item("C004", "冰咖啡", 10.0, ItemType.DRINK);
    }

    public static Item cola() {
        return new Item("C005", "可乐", 8.0, ItemType.DRINK);
    }

    public static Item orangeJuice() {
        return new Item("J006", "橙汁", 9.0, ItemType.DRINK);
    }

    // 甜品类
    public static Item iceCream() {
        return new Item("D007", "冰淇淋", 6.0, ItemType.DESSERT);
    }

    public static Item cake() {
        return new Item("D008", "蛋糕", 12.0, ItemType.DESSERT);
    }

}
